package com.sgb.contract.test;

import android.view.View;

import com.sgb.contract.BR;
import com.sgb.contract.R;
import com.sgb.contract.base.BaseActivity;
import com.sgb.contract.databinding.ContractActivityMainBinding;

/**
 * MainActivity
 * module 测试使用
 * @author cyj
 */
public class MainActivity extends BaseActivity<ContractActivityMainBinding, MainViewModel> {

    @Override
    protected int getLayoutResId() {
        return R.layout.contract_activity_main;
    }

    @Override
    protected void initViewModel() {
        mViewModel = createViewModel(MainViewModel.class, BR.mainViewModel);
        mDataBinding.setMainViewModel(mViewModel);
    }

    @Override
    protected void init() {
        mDataBinding.head.title.setText("(测试)合同MainActivity");
        mDataBinding.head.ivBack.setVisibility(View.GONE);
    }
}
